<?php
//https://author.baidu.com/home/1605662285475872

if($_GET['gather_type']==6&&preg_match("/yidianzixun\.com/Uisx",$this->url,$nn)){

    $url = $this->url;
    $c = $GLOBALS['mycurl']->result("", $this->url);

    $ch = curl_init();
    curl_setopt($ch, CURLOPT_URL, $url);
    curl_setopt($ch, CURLOPT_USERAGENT, "yidian/5.1.4 (iPhone; iOS 12.4.2; Scale/3.00)");
    curl_setopt($ch, CURLOPT_HTTPHEADER, array("Accept-Language:  zh-Hans;q=1, zh-Hant;q=0.9, zh-Hans-CN;q=0.8"));
    curl_setopt($ch, CURLOPT_COOKIE, "JSESSIONID=GOnI36mveGsqjgWMPCPlOg");
    //curl_setopt($ch, CURLOPT_COOKIE, $c->cookie);
    curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, "false");
    curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, "2");
    curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
    curl_setopt($ch, CURLOPT_FOLLOWLOCATION,0);
    curl_setopt($ch, CURLOPT_VERBOSE,1);
    curl_setopt($ch, CURLOPT_HTTPHEADER, array("Host:{$c->qhost}","Connection:  keep-alive","Accept:  */*","Accept-Language:  zh-Hans;q=1, zh-Hant;q=0.9, zh-Hans-CN;q=0.8"));
    curl_setopt($ch, CURLOPT_HEADER, 0);
    curl_setopt($ch, CURLOPT_TIMEOUT, 60);
    $result=curl_exec($ch);
    curl_close($ch);
    $c->result($result,$url);
    $pagehtml=$c->body;
}
